<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>各省份累计确诊折线图</title>
    <script src="../static/echarts.min.js"></script>
</head>
<body>
<div id="main" style="width:1000px;height:400px"></div>
<script type="text/javascript">
      // 基于准备好的dom，初始化echarts实例
      var myChart = echarts.init(document.getElementById('main'));

      var province = [{% for item in province %}'{{ item }}',{% endfor %}];
      var all = [{% for item in all %}{{ item }},{% endfor %}];

      option = {
          title: {
          text: '各省份累计确诊折线图'
          },
          xAxis: {
            type: 'category',
            data: province,
            axisLabel:{
                interval:0,
                rotate:40
            }
          },
          tooltip: {},
          legend: {
          data: ['累计确诊']
          },
          yAxis: {
            type: 'value'
          },
          series: [
            {
              name: '累计确诊',
              data: all,
              type: 'line'
            }
          ]
        };

      myChart.setOption(option);



</script>

</body>
</html>